package com.spic.system.service;

import com.spic.system.domain.SysAnnounceReader;
import com.spic.system.domain.vo.SysAnnounceReaderVo;

import java.util.List;

/**
 * 阅读人Service接口
 *
 * @author spic
 * @date 2022-06-15
 */
public interface ISysAnnounceReaderService
{
    /**
     * 查询阅读人
     *
     * @param id 阅读人主键
     * @return 阅读人
     */
    public SysAnnounceReader selectSysAnnounceReaderById(Long id);

    /**
     * 查询阅读人列表
     *
     * @param sysAnnounceReader 阅读人
     * @return 阅读人集合
     */
    public List<SysAnnounceReader> selectSysAnnounceReaderList(SysAnnounceReader sysAnnounceReader);

    /**
     * 新增阅读人
     *
     * @param sysAnnounceReader 阅读人
     * @return 结果
     */
    public int insertSysAnnounceReader(SysAnnounceReader sysAnnounceReader);

    /**
     * 修改阅读人
     *
     * @param sysAnnounceReader 阅读人
     * @return 结果
     */
    public int updateSysAnnounceReader(SysAnnounceReader sysAnnounceReader);

    /**
     * 批量删除阅读人
     *
     * @param ids 需要删除的阅读人主键集合
     * @return 结果
     */
    public int deleteSysAnnounceReaderByIds(Long[] ids);

    /**
     * 删除阅读人信息
     *
     * @param id 阅读人主键
     * @return 结果
     */
    public int deleteSysAnnounceReaderById(Long id);


    List<SysAnnounceReaderVo> selectSysAnnounceReaderListByUserId(SysAnnounceReaderVo sysAnnounceReaderVo);

    void updateSysAnnounceReaderByStateHidden();

    List<SysAnnounceReaderVo> getAnnounceReaderByTypeList(SysAnnounceReaderVo sysAnnounceReaderVo);

    List<SysAnnounceReaderVo> getAnnounceReaderBySafetyList();
}
